#ifndef STM32WIG_H
#define STM32WIG_H

#include <QWidget>
#include <QJsonDocument>
#include <QJsonObject>
#include <QDebug>
#include <QLCDNumber>
#include <QPushButton>
#include <QMessageBox>

#include "mqtthandler.h"

namespace Ui {
class Stm32Wig;
}

class Stm32Wig : public QWidget
{
    Q_OBJECT

public:
    explicit Stm32Wig(QWidget *parent = 0);
    ~Stm32Wig();

public slots:
   void onDataUp(const QByteArray &data);
   void onPushButtonClicked();
private:
    Ui::Stm32Wig *ui;
    MqttHandler * mqttHandler;
    QLCDNumber* lcd_humi;
    QLCDNumber *lcd_temp;
    QPushButton* pushButton;


};

#endif // STM32WIG_H
